package cn.northsea.service.impl;

import cn.northsea.entity.Appeal;
import cn.northsea.mapper.AppealMapper;
import cn.northsea.service.AppealService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AppealServiceImpl extends ServiceImpl<AppealMapper, Appeal> implements AppealService {
    @Autowired
    private AppealMapper appealMapper;
    @Override
    public List<Appeal> findAll() {
        return appealMapper.findAll();
    }

    @Override
    public void updateAppelByState(Integer id, Integer zt) {
        appealMapper.updateAppelByState(id,zt);
    }

    @Override
    public void addAppeal(Appeal appeal) {
        appealMapper.addAppeal(appeal);
    }

    @Override
    public List<Appeal> getListById(Integer id) {
        return appealMapper.getListById(id);
    }
}
